import request from './axios'
const key = import.meta.env.VITE_WEATHER_API_KEY
//根据ip地址获得所在城市
export const getCityByIp = () => {
  return request.get(`/ip?key=${key}`)
}

//根据城市名称查找对应的adcode
export const queryCityAdCode = (city) => {
  return request.get(`/geocode/geo?key=${key}&address=${city}`)
}
